package com.xxgc.cloud.error.center.result;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import com.xxgc.cloud.error.center.BaseException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: SpringCloudStudy
 * @description: swagger和错误信息
 * @author: Mr.abel(ShiJiaYi)
 * @create: 2022-11-26 14:18
 **/
@RestController
@RequestMapping("/error/swagger")
@Api(tags = "异常中心已开启")
@ApiSupport(author = "Mr.abel")
public class SwaggerErrController {

    @ApiOperation(value = "获取异常中心版本号")
    @ApiOperationSupport(author = "ShiJiayi")
    @GetMapping("/getInfo")
    public ErrResult<BaseException> getErrorInfo(){
        return ErrResult.success("欢迎使用异常中心","ErrorCenter-V1.0.0");
    }
}
